package com.xinqi.modules.prepare.notice.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.prepare.notice.domain.PrepareNoticeEntity;
import com.xinqi.modules.prepare.notice.dto.req.PrepareNoticeQueryDTO;
import com.xinqi.modules.prepare.notice.dto.rsp.PrepareNoticeResultDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 备课区公告数据层
 *
 * @author: system
 * @date: 2023/03/19
 */
@Mapper
public interface PrepareNoticeMapper extends SuperMapper<PrepareNoticeEntity> {
    Page<PrepareNoticeResultDTO> findPage(Page<Object> page, @Param("dto") PrepareNoticeQueryDTO query);

    List<PrepareNoticeResultDTO> findList(@Param("dto") PrepareNoticeQueryDTO query);

    int restoreById(@Param("id") Long id);
}
